<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Annex/index')}">附件管理</a></li>
        <li><a href="{:url('Annex/add')}">附件添加</a></li>
    </ul>
    <div>
        <form class="well form-inline margin-top-20" action="{:url('Annex/index')}" method="get">
            <label>附件名称:
                <input type="text" class="form-control" name="annex_name" placeholder="请输入附件名称"
                       value="{:input('request.annex_name')}">
            </label>
            <input type="submit" class="btn btn-primary" value="搜索"/>
            <a class="btn btn-danger" href="{:url('Annex/index')}">清空</a>
        </form>
    </div>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th align="left" width="40">附件名称</th>
            <th align="left" width="20">尺寸规格</th>
            <th align="left" width="20">材料种类</th>
            <th align="left" width="40">价格</th>
            <th width="15">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="results" item="vo">
            <tr>
                <td>{$vo.annex_name}</td>
                <td>{$vo.size}</td>
                <td>
                    {$vo.cate_name}
                </td>
                <td>{$vo.price}</td>
                <td>
                    <a href="{:url('Annex/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                    |
                    <a class="js-ajax-delete" data-msg="确定删除吗？" href="{:url('Annex/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination" style="margin-top: -10px">{$page}</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>